<?php

/**
 * CreateServiceForm class.
 * CreateForm is the data structure for keeping
 * createservice form data. It is used by the 'login' action of 'SiteController'.
 */
class MessageFormModel extends CFormModel {

    public $sendTo;
    public $messageBody;
   
    /**
     * Declares the validation rules.
     * The rules state that username and password are required,
     * and password needs to be authenticated.
     */
    public function rules() {
        return array(
            // username and password are required
            array('messageBody', 'required'),
            //array('serviceApps', 'required', 'on' => 'AddServiceApplication'),
            array('sendTo', 'safe'),
                // array('serviceApps', 'required'),
        );
    }

    /**
     * Declares attribute labels.
     */
    public function attributeLabels() {
        return array(
            'sendTo' =>'Receiver:',
            'messageBody' => 'Message:'           
        );
    }

}
